package com.hzqy.web.ac.industry.medical;

import com.hzqy.service.industry.medical.SdgoodService;
import com.hzqy.web.vo.industry.medical.SdGoodOrderVo;
import com.hzqy.web.vo.industry.medical.SdGoodSysBrand;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/industry/dictGood")
public class DictGoodAction {
    
    @Resource
    private SdgoodService sdgoodService;
    
    @RequestMapping("/selectSys")//查询所有系统
    @ResponseBody
    public Map<String,Object> selectSys(){
        return sdgoodService.selectSys();
    }
    
    @RequestMapping("/selectGoods")//查询所有对应系统下所有的商品
    @ResponseBody
    public Map<String,Object> selectGoods(String f_sd_sys){
        return sdgoodService.selectGoods(f_sd_sys);
    }
    
    @RequestMapping("/selectBrands")//查询所有商品下所有的品牌
    @ResponseBody
    public Map<String,Object> selectBrands(String f_sd_good_good,String f_sd_sys){
//        System.out.println(f_sd_good_good);
//        String[] split = f_sd_good_good.split(",");
//        String[] split1 = f_sd_sys.split(",");
        return sdgoodService.selectBrands(f_sd_good_good,f_sd_sys);
    }
}
